using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ReadyToUseTools
{
    /// <summary>
    /// <para>ServerTool</para>
    /// <para></para>
    /// <para></para>
    /// </summary>    
    [DisplayName("ServerTool")]
    public class CreateMapArea : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateMapArea()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_mapItemId">
        /// <para>Map Item ID</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public CreateMapArea(object _mapItemId)
        {
            this._mapItemId = _mapItemId;
        }
        public override string ToolboxName => "Ready To Use Tools";

        public override string ToolName => "ServerTool";

        public override string CallName => "agolservices.CreateMapArea";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_mapItemId, _bookmark, _extent, _areaType.GetGPValue(), _area, _outputName, _mapAreaItemId];

        /// <summary>
        /// <para>Map Item ID</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Map Item ID")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _mapItemId { get; set; }


        /// <summary>
        /// <para>Map Bookmark</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Map Bookmark")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _bookmark { get; set; } = null;


        /// <summary>
        /// <para>Extent</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Extent")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _extent { get; set; } = null;


        /// <summary>
        /// <para>Area Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Area Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _areaType_value _areaType { get; set; } = _areaType_value._BOOKMARK;

        public enum _areaType_value
        {
            /// <summary>
            /// <para>BOOKMARK</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BOOKMARK")]
            [GPEnumValue("BOOKMARK")]
            _BOOKMARK,

            /// <summary>
            /// <para>ENVELOPE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ENVELOPE")]
            [GPEnumValue("ENVELOPE")]
            _ENVELOPE,

            /// <summary>
            /// <para>POLYGON</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("POLYGON")]
            [GPEnumValue("POLYGON")]
            _POLYGON,

        }

        /// <summary>
        /// <para>Area</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Area")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _area { get; set; } = null;


        /// <summary>
        /// <para>Output Name</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _outputName { get; set; } = null;


        /// <summary>
        /// <para>Map Area Item ID</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Map Area Item ID")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _mapAreaItemId { get; set; }


        public CreateMapArea SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}